home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
dvtools
/
demos
/
dwpdemo
/
dwp_vars.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-08
|
3KB
|
137 lines
#ifndef lint
static char SccsId[]= "@(#)dwp_vars.c V1.7 3/15/95";
#endif
/*------------------------------------------------------------------
| file name -- dwp_vars.c
|-----------------------------------------------------------------*/
#include "std.h"
#include "dvstd.h"
#include "dvtools.h"
#include "dwp_vars.h"
#include "dwp_fundecl.h"
CHAR *Device = NULL;
CHAR *view_name[MAXWINS] =
{"main.v",
"ammonia.v",
"hp_drum.v",
"lp_drum.v",
"hand.v",
"help.v",
"legend.v"};
OBJECT DVscreen[MAXWINS] =
{
0,
0,
0,
0,
0,
0
};
DV_BOOL WaitingForExpose = NO;
DV_BOOL JustDidResize = NO;
DRAWPORT drawport[MAXWINS];
VIEW view[MAXWINS];
DATASOURCELIST dsl[MAXWINS];
OBJECT drawing[MAXWINS];
INT window_status[MAXWINS] =
{CLOSED, CLOSED, CLOSED, CLOSED, CLOSED, CLOSED, CLOSED};
INT dynamic_status[MAXWINS] =
{OFF, OFF, OFF, OFF, OFF, OFF, OFF};
OBJECT displaydq[MAXWINS] =
{0, 0, 0, 0, 0, 0, 0};
OBJECT maindq = 0;
OBJECT v3dq = 0;
OBJECT v4dq = 0;
OBJECT v1dq = 0;
OBJECT v2dq = 0;
#ifdef WINNT
DV_POINT window_size[MAXWINS] =
{ -1, -1, /* MAIN - default size */
380, 380, /* AMMONIA */
380, 380, /* HP_DRUM */
380, 380, /* LP_DRUM */
380, 380, /* HAND */
380, 380, /* HELP */
380, 380, /* LEGEND */
};
DV_POINT window_offset[MAXWINS] =
{ 10, 2, /* MAIN - default size */
10, 0, /* AMMONIA */
10, 0, /* HP_DRUM */
400, 0, /* LP_DRUM */
400, 0, /* HAND */
10, 0, /* HELP */
10, 0, /* LEGEND */
};
#else /* Not WINNT */
DV_POINT window_size[MAXWINS] =
{ -1, -1, /* MAIN - default size */
450, 280, /* AMMONIA */
450, 338, /* HP_DRUM */
450, 338, /* LP_DRUM */
450, 338, /* HAND */
450, 338, /* HELP */
450, 338, /* LEGEND */
};
DV_POINT window_offset[MAXWINS] =
{ 100, 100, /* MAIN - default size */
100, 100, /* AMMONIA */
110, 110, /* HP_DRUM */
580, 110, /* LP_DRUM */
400, 110, /* HAND */
110, 110, /* HELP */
110, 110, /* LEGEND */
};
#endif /* WINNT */
CHAR *window_name[MAXWINS] =
{
"Heat Recovery Steam Generator System",
"Ammonia Subsystem",
"High Pressure Drum Detail",
"Low Pressure Drum Detail",
"Hand/Autostation",
"Help",
"Legend"
};
FLOAT current_setpoint[MAXVALVE] =
{0.0, 50.0, 50.0, 0.0, 50.0};
FLOAT current_highvalue[MAXVALVE] =
{0.0, 85.0, 85.0, 85.0, 85.0};
FLOAT current_lowvalue[MAXVALVE] =
{0.0, 15.0, 15.0, 15.0, 15.0};
INT v1status = ON;
INT v2status = ON;
INT v3status = OFF;
INT v4status = ON;
RECTANGLE whole_vp =
{ XMIN, YMIN, XMAX, YMAX };
INT whichvalve;
DV_BOOL QuitStatus;
SYMTABLE
DataTable;
OBJECT DynObjects[MAXWINS];
OBJECT ActiveScreen;
INT ActiveScreenIndex;